tpl.roleItem = 
'<em class="toggle-icon{{#roleAndMemberModal}}{{#hasMember}} visible{{/hasMember}}{{/roleAndMemberModal}}"></em>' +
'<div class="row-wrap{{#editingRow}} editing-row{{/editingRow}}">' +
'   <em class="role-icon"></em>' +
'   <span class="role-name" title="{{roleName}}">{{roleName}}</span>' +
'   {{#roleAndMemberModal}}' + 
'   <input class="role-inp" type="text" placeholder="{{editRoleInpPH}}" maxlength="30" value={{roleName}}>' +
'   <span class="member-count{{#hasMember}} visible{{/hasMember}}">(<span class="num">{{memberCount}}</span>)</span>' +
'   {{#editable}}' + 
'   <span class="delete-role" title="{{deleteRoleTitle}}"></span>' +
'   <span class="edit-role" title="{{editRoleTitle}}"></span>' +
'   <a class="delete-role-cancel" title="{{deleteRoleCancelTitle}}" href="#">{{deleteRoleCancelTitle}}</a>' +
'   <a class="delete-role-confirm" title="{{deleteRoleConfrimTitle}}" href="#">{{deleteRoleConfrimTitle}}</a>' +
'   <a class="add-role-confirm" title="{{addRoleConfirmTitle}}" href="#">{{addRoleConfirmTitle}}</a>' +
'   <a class="add-role-cancel" title="{{addRoleCancelTitle}}" href="#">{{addRoleCancelTitle}}</a>' +
'   {{/editable}}' + 
'   {{/roleAndMemberModal}}' + 
'   {{#privilegeModal}}' + 
'   <span class="privileges-wrap">' + 
'       <label><input type="checkbox" class="cb canread{{#readInherit}} inherit{{/readInherit}}" {{#readChecked}}checked{{/readChecked}} {{#readDisabled}}disabled{{/readDisabled}} />{{canReadPH}}</label>' + 
'       <label><input type="checkbox" class="cb canwrite{{#writeInherit}} inherit{{/writeInherit}}" {{#writeChecked}}checked{{/writeChecked}} {{#writeDisabled}}disabled{{/writeDisabled}} />{{canWritePH}}</label>' + 
'       <label><input type="checkbox" class="cb candelete{{#deleteInherit}} inherit{{/deleteInherit}}" {{#deleteChecked}}checked{{/deleteChecked}} {{#deleteDisabled}}disabled{{/deleteDisabled}} />{{canDeletePH}}</label>' + 
'       <label><input type="checkbox" class="cb canx" {{#xChecked}}checked{{/xChecked}} {{#xDisabled}}disabled{{/xDisabled}} />{{canXPH}}</label>' + 
'   </span>' + 
'   {{/privilegeModal}}' + 
'</div>' + 
'{{#hasMember}}<div class="loading-tip">{{loadingTip}}</div>{{/hasMember}}';
